﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CodeCamp.Infrastructure.Extensions
{
    public static class ObjectExtensions
    {

        public static bool AsBool(this object param)
        {

            var result = false;

            if (param != null)
                bool.TryParse(param.ToString(), out result);

            return result;
        }

    }
}